package com.adityayadav.parallelism.actors;

import java.util.HashMap;

public class PostOffice {

	protected HashMap<String,Object> mailboxes = new HashMap<String,Object>();
	
	public void addMailbox(String mailboxUUID, Object mailbox){
		mailboxes.put(mailboxUUID, mailbox);
	}
	
	public Object getMailbox(String mailboxUUID){
		return mailboxes.get(mailboxUUID);
	}
	
	public void removeMailbox(String mailboxUUID){
		mailboxes.remove(mailboxUUID);
	}
}
